package com.lsl.crm.function;

import java.sql.Timestamp;
import java.util.List;

import com.lsl.crm.dao.ChanceDao;
import com.lsl.crm.dao.LogonDao;
import com.lsl.crm.dao.UserDao;
import com.lsl.crm.vo.Chance;
import com.lsl.crm.vo.User;
public class CrmDaoImpl implements CrmDao{
	private LogonDao logonDao;
	private ChanceDao chanceDao;
	private UserDao userDao;
	
	public UserDao getUserDao() {
		return userDao;
	}
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
	public ChanceDao getChanceDao() {
		return chanceDao;
	}
	public void setChanceDao(ChanceDao chanceDao) {
		this.chanceDao = chanceDao;
	}
	public LogonDao getLogonDao() {
		return logonDao;
	}
	public void setLogonDao(LogonDao logonDao) {
		this.logonDao = logonDao;
	}
	public User login(String name,String password){
		return logonDao.login(name, password);
	}
	public List<User>getList(){
		return userDao.getList();
	}
	public List<Chance> getChanceList(){
		return chanceDao.getChanceList();
	}
	public String addChance(String name, String link_name, String link_phone,
			String success_rate,String source, String about, String detail,
			String builder_chance, Timestamp b_t) {
		// TODO Auto-generated method stub
		return chanceDao.addChance(name,link_name,link_phone,success_rate,source,about,detail,builder_chance,b_t);
	}
	
}
